package com.cmwa.scbp.base.config.dataSource;

import org.mybatis.spring.mapper.MapperScannerConfigurer;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import com.cmwa.scbp.base.annotation.MybatisDao;

@Configuration
public class MapperScanner {

	@Bean
	public MapperScannerConfigurer scbpMapperScanner() {
		MapperScannerConfigurer mapperScannerConfigurer = new MapperScannerConfigurer();
		mapperScannerConfigurer.setSqlSessionFactoryBeanName("scbpSqlSessionFactory");
		mapperScannerConfigurer.setBasePackage("com.cmwa.scbp");
		mapperScannerConfigurer.setAnnotationClass(MybatisDao.class);
		return mapperScannerConfigurer;
	}
}
